package com.hjn.study.prototype;

import com.alibaba.fastjson.JSON;

public class JSONTest {
    public static void main(String[] args) throws CloneNotSupportedException {
        User user = User.getUser();
        String s = JSON.toJSONString(user);
        User user1 = JSON.parseObject(s, User.class);
        System.out.println(user==user1);
    }
}
